import { http } from '@/axios'

/**
 * @description token列表
 */
export function tokenList (data) {
  return http.request({
    url: '/token/list',
    method: 'POST',
    data,
  })
}

/**
 * @description 创建token
 */
export function createToken (data) {
  return http.request({
    url: '/token/batch_create',
    method: 'POST',
    data,
  })
}

/**
 * @description 修改token
 */
export function updateToken (data) {
  return http.request({
    url: '/token/update',
    method: 'POST',
    data,
  })
}

/**
 * @description 删除token
 */
export function deleteToken (data) {
  return http.request({
    url: '/token/delete',
    method: 'POST',
    data,
  })
}